# 机器学习进阶-边缘检测-Canny边缘检测
# 1.cv2.Canny(进行Canny边缘检测)
import cv2
import matplotlib.pyplot as plt
import numpy as np

original = cv2.imread('AM.png')

down = cv2.pyrDown(img)
up_down = cv2.pyrUp(down)
lap_img = img - up_down

# 第六步： 对两种结果进行画图
images = [img, down, up_down, lap_img]
titles = ['IMG', 'DOWN', 'UP_DOWN', 'LAP_IMG']

for i in range(4):
    plt.subplot(2, 3, i + 1)
    plt.imshow(images[i])
    plt.title(titles[i])
plt.show()
